import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class Main {
    /**
     *
     * @param args
     */
    public static void main(String[] args) {
        //新更新的代码v4.0
        //国内的码云
        //国外的github.com
        System.out.println("教学仓库");
        JFrame frame = new JFrame();
        frame.setSize(500,500);
        JPanel panel = new JPanel();
        panel.setLayout(null);
        JButton  button=new JButton("罗泉森");
        button.setBounds(100,100,100,50);
        button.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                button.setBounds(300,100,100,50);
            }
        });
        panel.add(button);
        frame.add(panel);

        frame.setLocationRelativeTo(null);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);

    }
}